<?php

$base = mysql_connect ('localhost', 'root', ''); 
mysql_select_db ('sql111.0fees.net', $base) ;$id=$_GET['id'];
$objet=$_GET['objet'];
$corp=$_GET['mess'];

$requete="insert into reclammation values  (null,'$objet','$corp',null,'$id',0,null);";
$requete3="insert into messagec values  (null,'accuse de reception','votre reclamation a ete envoyee avec succes',0,'$id');";
$requete2="select count(*) as nbr from messagec where etat=0 ;";
$resultat3 =mysql_query($requete3);

$resultat =mysql_query($requete);
if ($resultat2 = mysql_fetch_array(mysql_query($requete2))) 
echo($resultat2['nbr']);
?>